//
//  ZWFoundSearchView.swift
//  weiboXue
//
//  Created by xue-iOS-work on 16/8/29.
//  Copyright © 2016年 iOS-work. All rights reserved.
//

import UIKit

@IBDesignable  class ZWFoundSearchView: UIButton {
    //创建一个类方法加载
     class  func searchView() -> ZWFoundSearchView {
        let nib = UINib.init(nibName: "ZWFoundNaviBtn", bundle: nil)
        let searchView = nib.instantiate(withOwner: nil
            , options: nil).last! as!ZWFoundSearchView
        return searchView
    }
    override func awakeFromNib() {
//        setImage(UIImage.init(named: "tabbar_discover_selected"), for: .highlighted)
//        setima
        imageEdgeInsets = UIEdgeInsetsMake(0, 15, 0, 0)
        titleEdgeInsets = UIEdgeInsetsMake(0, 25, 0, 0)
    }
    
}
